home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Source Code
/
Visual Basic Source Code.iso
/
vbsource
/
detect2r
/
mhdock_m.frm
next >
Wrap
Text File
|
1999-09-01
|
3KB
|
83 lines
VERSION 5.00
Begin VB.MDIForm mdiMHDock
BackColor = &H8000000F&
Caption = "MHDock UserControl "
ClientHeight = 5145
ClientLeft = 825
ClientTop = 1455
ClientWidth = 6870
LinkTopic = "MDIForm1"
Begin prjMHDock.MHDock MHDock1
Left = 3060
Top = 2040
_ExtentX = 847
_ExtentY = 820
End
Begin VB.PictureBox Picture1
Align = 1 'Align Top
Height = 675
Left = 0
ScaleHeight = 615
ScaleWidth = 6810
TabIndex = 0
Top = 0
Width = 6870
Begin VB.Label Label1
Alignment = 1 'Right Justify
Caption = "Horizontal Snap:"
Height = 255
Index = 0
Left = 540
TabIndex = 4
Top = 60
Width = 1215
End
Begin VB.Label Label1
Alignment = 1 'Right Justify
Caption = "Vertical Snap:"
Height = 255
Index = 1
Left = 540
TabIndex = 3
Top = 360
Width = 1215
End
Begin VB.Label lblxDock
Height = 195
Left = 1860
TabIndex = 2
Top = 60
Width = 2235
End
Begin VB.Label lblyDock
Height = 195
Left = 1860
TabIndex = 1
Top = 360
Width = 2235
End
End
End
Attribute VB_Name = "mdiMHDock"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub MDIForm_Load()
frmMHDock.Show
End Sub
Private Sub MHDock1_Moved(xDockPos As Single, yDockPos As Single)
Select Case xDockPos
Case 0: lblxDock.Caption = "Not docked"
Case 1: lblxDock.Caption = "Docked on the left"
Case 2: lblxDock.Caption = "Docked on the right"
End Select
Select Case yDockPos
Case 0: lblyDock.Caption = "Not docked"
Case 1: lblyDock.Caption = "Docked on the top"
Case 2: lblyDock.Caption = "Docked on the bottom"
End Select
End Sub